const  glob = require('glob')
const  fs = require('fs')
const f = glob.sync(`./src/**/*.less`);

fs.writeFileSync('./es/index.less',f.filter(v=>!v.includes('theme')&&!v.includes('external.less'))
.map(v=>`@import '${v.replace('src/','')}';`)
.join(`\n`))

